<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/7
 * Time: 11:24
 */

namespace app\admin\model;
use think\Model;

class Kami extends Model
{

    static function daili_type($type,$id=''){
        if($type == "s"){
            return db('kmtype')->select();
        }
        if($type == "f"){
            return db('kmtype')->where('id','in',$id)->find();

        }
    }
    static function user_row($id){
        return db('user')->where('id','in',$id)->find();
    }
}